package com.eregg.spring.cloud.movie.feign;

import com.eregg.spring.cloud.movie.bean.User;
import org.springframework.stereotype.Component;

/**
 *
 * Created by e on 2017/11/9
 *
 * @author <a href="http://eregg.com">eregg</a>
 */
@Component
public class UserFeignClientHystrixFallback implements UserFeignClient {
    @Override
    public User findById(Long id) {
        User user = new User();
        user.setId(-1L);
        user.setName("默认用户");
        return user;
    }
}
